Skip to content

Updated recv_deadline documentation#1245

Open
ErisianArchitect wants to merge 1 commit intocrossbeam-rs:masterfrom
ErisianArchitect:master
Open

Updated recv_deadline documentation#1245
ErisianArchitect wants to merge 1 commit intocrossbeam-rs:masterfrom
ErisianArchitect:master

Conversation

@ErisianArchitect
Copy link
Copy Markdown

@ErisianArchitect ErisianArchitect commented Apr 5, 2026

I noticed that the behavior of recv_deadline is undocumented for the edge case where the channel is non-empty and the deadline has already been reached already. It has a bit of an unexpected behavior in that it ignores the deadline and returns the next message in the channel. I assume this behavior is intentional since you can check the deadline upstream, so I have updated the documentation to reflect the behavior.

This is related to issue #975

Closes #975

Copy link
Copy Markdown
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

recv_deadline with past instant is ambiguous

2 participants